package com.cxs.shopstore.models;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author cxs
 * @since 2021-05-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_good")
@ApiModel(value="Good对象", description="")
public class Good implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品主键id")
    @TableId(value = "good_id", type = IdType.ID_WORKER_STR)
    private String goodId;

    @ApiModelProperty(value = "商品名")
    private String goodName;

    @ApiModelProperty(value = "商品价格")
    private String goodPrice;

    @ApiModelProperty(value = "商品图片路径")
    private String goodImgPath;

    @ApiModelProperty(value = "商品添加入库时间")
    private Long goodCreateTime;

    @ApiModelProperty(value = "商品状态")
    private Integer goodStatus;

    @ApiModelProperty(value = "商品sku")
    private Long goodSku;

    @ApiModelProperty(value = "商品卖家")
    private String goodSaler;

    @ApiModelProperty(value = "商品介绍")
    private String goodState;

    @ApiModelProperty(value = "商品分类")
    private String goodType;

    @TableField(exist = false)
    private String imgBase64;


}
